import { createRouter, createWebHashHistory } from 'vue-router'

import Home from '@renderer/views/home/home.vue'
import Setting from '@renderer/views/user/setting.vue'

const systemRouter = [
  {
    name: 'home',
    path: '/',
    component: Home
  },
  {
    name: 'setting',
    path: '/setting',
    component: Setting
  }
]

const routes = [...systemRouter]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
